﻿using System.Collections.Generic;

namespace Configs
{
    public struct HeroData
    {
        public string Name;

        /// <summary>
        ///     QWER 技能键值
        /// </summary>
        public int[] SkillKeys;

        /// <summary>
        ///     QWER 技能数据
        /// </summary>
        public List<SkillData> SkillDatas;

        /// <summary>
        ///     英雄属性
        /// </summary>
        public RoleBaseAttr Attr;
    }

    /// <summary>
    ///     英雄配置
    /// </summary>
    public static class HeroConfig
    {
        public static int HeroKeyDefault = 1001;

        public static Dictionary<int, HeroData> HeroDatas = new()
        {
            [1001] = new HeroData
            {
                Name = "Hero",
                SkillKeys = new[] {101, 102, 103, 104},
                SkillDatas = new List<SkillData>(),
                Attr = new RoleBaseAttr
                {
                    CurHp = 300.0f,
                    TotalHp = 300.0f,
                    CurMp = 300.0f,
                    TotalMp = 300.0f,
                    Atk = 10.0f,
                    Def = 10.0f
                }
            }
        };
    }
}